package com.weiyuwqj.api.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

@Table(name = "bus_account")
public class BusAccount implements Serializable {
    /**
     * 主键
     */
    @Id
    private Integer id;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 总金额
     */
    private BigDecimal total;

    /**
     * 可用金额
     */
    private BigDecimal usable;

    /**
     * 冻结金额
     */
    private BigDecimal frozen;

    /**
     * 待收金额
     */
    private BigDecimal wait;

    /**
     * 待还金额
     */
    private BigDecimal repay;

    private BigDecimal cash;

    public BigDecimal getCash() {
        return cash;
    }

    public void setCash(BigDecimal cash) {
        this.cash = cash;
    }

    /**
     * 获取主键
     *
     * @return id - 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取总金额
     *
     * @return total - 总金额
     */
    public BigDecimal getTotal() {
        return total;
    }

    /**
     * 设置总金额
     *
     * @param total 总金额
     */
    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    /**
     * 获取可用金额
     *
     * @return usable - 可用金额
     */
    public BigDecimal getUsable() {
        return usable;
    }

    /**
     * 设置可用金额
     *
     * @param usable 可用金额
     */
    public void setUsable(BigDecimal usable) {
        this.usable = usable;
    }

    /**
     * 获取冻结金额
     *
     * @return frozen - 冻结金额
     */
    public BigDecimal getFrozen() {
        return frozen;
    }

    /**
     * 设置冻结金额
     *
     * @param frozen 冻结金额
     */
    public void setFrozen(BigDecimal frozen) {
        this.frozen = frozen;
    }

    /**
     * 获取待收金额
     *
     * @return wait - 待收金额
     */
    public BigDecimal getWait() {
        return wait;
    }

    /**
     * 设置待收金额
     *
     * @param wait 待收金额
     */
    public void setWait(BigDecimal wait) {
        this.wait = wait;
    }

    /**
     * 获取待还金额
     *
     * @return repay - 待还金额
     */
    public BigDecimal getRepay() {
        return repay;
    }

    /**
     * 设置待还金额
     *
     * @param repay 待还金额
     */
    public void setRepay(BigDecimal repay) {
        this.repay = repay;
    }

}